package com.yunbao.hujin.myexplainguide;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

import com.yunbao.hujin.guidelibrary.HighLight;

public class ThreeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_three);

        addViewToLayout();
    }

    private void addViewToLayout() {
        HighLight highLight = new HighLight(this)
                .setOnClickCallback(new HighLight.OnClickCallback() {
                    @Override
                    public void onClick() {
                        Toast.makeText(ThreeActivity.this, "覆盖层被点击了", Toast.LENGTH_SHORT).show();
                    }
                })
                .addLayout(R.layout.three_layout);
    }

}
